package com.co.video.mapper;

import com.co.video.pojo.Detail;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;
import tk.mybatis.mapper.common.Mapper;

import java.util.List;
import java.util.Map;

/**
 * @author ldl.plus
 * @date 2020年06月22日  0:41
 */
public interface DetailMapper extends Mapper<Detail> {

    @Select("select title,username,create_time,status,durations,Image from tv_vdetail as d where `username` = #{username}")
    List<Map> findListByUsername(@Param("username") String username);
}
